package hxy.bytecode.abstruct;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public abstract class AbstractBaseClass {

    public ResultSet select() {
        ResultSet resultSet = null;
        Connection connection = connectionDatebase();
        try {
            PreparedStatement preparedStatement = connection.prepareStatement("select  * from  table");
            resultSet = preparedStatement.executeQuery();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }

        return resultSet;
    }

    public abstract Connection connectionDatebase();

}
